import React from 'react';
import styles from './style';
import {Image, View, TouchableOpacity} from 'react-native';
const back_w = require('../../img/back_w.png');
const back = require('../../img/back.png');

export default ({navigation, witheIcon}) => {
  return (
    <TouchableOpacity
      onPress={() => {
        navigation.pop();
      }}>
      <View style={styles.backContainer}>
        <Image source={witheIcon ? back_w : back} style={styles.back}></Image>
      </View>
    </TouchableOpacity>
  );
};
